home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 2.4 KB | 96 lines | [TEXT/MPS ] |
- //----------------------------------------------------------------------------------------
- // UQD3DViewerView.h
- // Copyright © 1996 by Geoffrey J. Clapp. All rights reserved.
- //----------------------------------------------------------------------------------------
-
- #ifndef __UQD3DViewer__
- #define __UQD3DViewer__
-
- #ifndef __UVIEW__
- #include "UView.h"
- #endif
-
- //QuickDraw3D
- #ifndef QD3DViewer_h
- #include "QD3DViewer.h"
- #endif
-
- //----------------------------------------------------------------------------------------
- // TQD3DViewerView
- //----------------------------------------------------------------------------------------
-
- class TQD3DViewerView: public TView
- {
- MA_DECLARE_CLASS;
-
- public:
- TQD3DViewerView();
-
- virtual ~TQD3DViewerView();
-
- virtual void IQD3DViewerView(TDocument* itsDocument,
- TView* itsSuperView,
- const VPoint& itsLocation,
- const VPoint& itsSize);
-
- virtual void DoPostCreate(TDocument* itsDocument);
-
- virtual void Draw(const VRect& area);
-
- virtual void DoSetupMenus();
-
- virtual void DoMenuCommand(CommandNumber aCommandNumber);
-
- virtual void DoMouseCommand(VPoint& theMouse,
- TToolboxEvent* event,
- CPoint hysteresis);
-
- virtual void DoSetCursor(const VPoint& localPoint, RgnHandle cursorRegion);
-
- virtual void AddViewerToView(unsigned long theViewerFlags);
-
- virtual void RemoveViewerFromView();
-
- virtual void SetRenderer(TQ3ObjectType renderType,Boolean redraw);
-
- virtual TQ3RendererObject* GetRenderer();
-
- virtual PicHandle AsPict();
-
- virtual void SetBackgroundColor(TQ3ColorARGB* newColor, Boolean redraw);
-
- virtual void SetBackgroundColor(RGBColor newColor, float alpha, Boolean redraw);
-
- virtual RGBColor GetRGBBackgroundColor();
-
- virtual TQ3ColorARGB* GetBackgroundColor();
-
-
- void SetCreationType(Boolean UseManual);
-
-
- virtual void SetViewerFlags(unsigned long theViewerFlags);
-
- virtual unsigned long GetViewerFlags();
-
- virtual void SetCurrentButton(unsigned long theButton);
-
- virtual unsigned long GetCurrentButton();
-
-
- protected:
- TQ3ViewerObject fViewer;
- Boolean fUseManualCreation;
-
- };
-
-
- //----------------------------------------------------------------------------------------
- // Global initialization procedure
- //----------------------------------------------------------------------------------------
-
- extern void InitUQD3DViewerView();
- // Call this routine at initialization time
-
- #endif
-